<?php defined('SYSPATH') or die('No direct script access.');

/**
 * @file feerule.php
 * @brief feerule model
 * @author Lionel Tsai
 * @version 1.0
 * @date 2012-04-05
 */


class Model_Feerule extends ORM {
	protected $_table_name = 'feerule';
	protected $_belongs_to = array(
		'bank' => array('model'=>'bank', 'foreign_key' => 'bank_id'),
		'province' => array('model'=>'type', 'foreign_key' => 'province_id'),
		'city' => array('model'=>'type', 'foreign_key' => 'city_id'),
		'cardtype' => array('model'=>'type', 'foreign_key' => 'cardtype_id'),
		'grade' => array('model'=>'type', 'foreign_key' => 'grade_id'),
		'currency' => array('model'=>'type', 'foreign_key' => 'currency_id'),
		
	);
	protected $_has_many = array(
	);

}
